import request from '@/utils/request'

// 查询测试结果列表
export function listTestAnswer(query) {
  return request({
    url: '/system/testAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询测试结果详细
export function getTestAnswer(id) {
  return request({
    url: '/system/testAnswer/' + id,
    method: 'get'
  })
}

// 新增测试结果
export function addTestAnswer(data) {
  return request({
    url: '/system/testAnswer',
    method: 'post',
    data: data
  })
}

// 修改测试结果
export function updateTestAnswer(data) {
  return request({
    url: '/system/testAnswer',
    method: 'put',
    data: data
  })
}

// 删除测试结果
export function delTestAnswer(id) {
  return request({
    url: '/system/testAnswer/' + id,
    method: 'delete'
  })
}
